<template>
  <div class="goods-card">
    <div class="goods-box">
      <div class="goods-img">
        <slot>图片</slot>
      </div>
      <div class="goods-title van-ellipsis">
        {{goodsTitle}}
      </div>
      <div class="goods-price">
        ￥{{goodsPrice}}.00元
      </div>
    </div>
  </div>
</template>

<script>
  export default {
    props: ['goodsTitle','goodsPrice']
  }
</script>

<style scoped>
  .goods-card{
    width: 50%;
    box-sizing: border-box;
  }
  .goods-box{
    margin: .05rem;
    box-shadow: .04rem .04rem .08rem .01rem rgba(0,0,0,.1);
  }
  .goods-img img{
    max-width: 100%;
  }
  .goods-price{
    color:#8b0000;
    text-align: center;
    padding-bottom: .1rem;
    font-size: .14rem;

  }
  .goods-title{
    font-size: .14rem;
    text-align: center;
    margin-bottom: .1rem;
    padding: 0 .2rem;
  }
</style>